<?php

namespace App\Enums\OpenShop\InvestmentPromotion;

class ContractStatusEnum
{

    const DRAFT      = 'DRAFT'; //草稿
    const RECALLED   = 'RECALLED'; //已撤回
    const SIGNING    = 'SIGNING';//签署中
    const REJECTED   = 'REJECTED';//已退回
    const COMPLETE   = 'COMPLETE';//已完成
    const EXPIRED    = 'EXPIRED';//已过期
    const FILLING    = 'FILLING';//	拟定中
    const FAILED     = 'FAILED';//签署失败
    const INVALIDING = 'INVALIDING';//作废中
    const INVALIDED  = 'INVALIDED';//已作废


    const CALL_BACK_TYPE_SEND_SIGNING     = "SEND_SIGNING";//发送签署
    const CALL_BACK_TYPE_SEND_FILLING     = "SEND_FILLING";//发送填参
    const CALL_BACK_TYPE_FILLED           = "FILLED";//完成参数
    const CALL_BACK_TYPE_CONFIG_FLOW      = "CONFIG_FLOW";//配置流程
    const CALL_BACK_TYPE_PERSONAL         = "PERSONAL";//个人签字
    const CALL_BACK_TYPE_OPERATOR         = "OPERATOR";//经办人签名
    const CALL_BACK_TYPE_LEGAL_PERSON     = "LEGAL_PERSON";//法定代表人签字
    const CALL_BACK_TYPE_SEAL             = "SEAL";//企业签章
    const CALL_BACK_TYPE_AUDIT_SIGN       = "AUDIT_SIGN";//审批并签署
    const CALL_BACK_TYPE_AUDIT            = "AUDIT";//文件审批
    const CALL_BACK_TYPE_RECALLED         = "RECALLED";//撤回文件
    const CALL_BACK_TYPE_REJECTED         = "REJECTED";//退回文件
    const CALL_BACK_TYPE_EXPIRED          = "EXPIRED";//文件过期
    const CALL_BACK_TYPE_COMPLETE         = "COMPLETE";//文件完成
    const CALL_BACK_TYPE_SEND_INVALID     = "SEND_INVALID";//发送作废
    const CALL_BACK_TYPE_INVALIDING       = "INVALIDING";//签署作废
    const CALL_BACK_TYPE_INVALIDED        = "INVALIDED";//作废完成
    const CALL_BACK_TYPE_INVALID_REJECTED = "INVALID_REJECTED";//拒绝作废
    const CALL_BACK_TYPE_FAILED           = "FAILED";//签署失败
    const CALL_BACK_TYPE_DOCUMENT_DELAY   = "DOCUMENT_DELAY";//文件延期
    const CALL_BACK_TYPE_MODIFY_SIGNATORY = "MODIFY_SIGNATORY";//修改接收方信息
    const CALL_BACK_TYPE_UNKNOWN          = "UNKNOWN";//未知

    const CODE_NUM = [
        self::SIGNING    => 0,
        self::COMPLETE   => 1,
        self::DRAFT      => 2,
        self::RECALLED   => 3,
        self::REJECTED   => 4,
        self::EXPIRED    => 5,
        self::FILLING    => 6,
        self::FAILED     => 7,
        self::INVALIDING => 8,
        self::INVALIDED  => 9,
    ];

    const CODE_TEXT = [
        self::SIGNING    => '签署中',
        self::COMPLETE   => '已完成',
        self::DRAFT      => '草稿',
        self::RECALLED   => '已撤回',
        self::REJECTED   => '已退回',
        self::EXPIRED    => '已过期',
        self::FILLING    => '拟定中',
        self::FAILED     => '签署失败',
        self::INVALIDING => '作废中',
        self::INVALIDED  => '已作废',
    ];

}
